#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
// Thong tin sinh Vien
typedef struct  {
	char mssv[10];
	char name[30];
	int age;
} sinhvien;

int main(){

	sinhvien sv;
	// Nhap thong tin sinh vien
	printf("\n Nhap thong tin sinh vien: ");
	printf("\n Nhap ma so sinh vien: ");
	scanf("%s",&sv.mssv); 
	fflush(stdin);
	printf("\n Nhap Ho ten sinh vien: ");
	gets(sv.name);
	
	lbNhapTuoi:
		printf("\n Nhap Tuoi sinh vien: ");
		scanf("%d",&sv.age);
		if( sv.age < 0){
			printf("\n Nhap lai Tuoi sinh vien: ");
			goto lbNhapTuoi;
		}
		
	printf("\n Thong tin sinh vien vua nhap :\n");
	printf("%s \t %s \t %d",sv.mssv,sv.name,sv.age);
	getch();
}
